cmake_minimum_required (VERSION 3.4)
SET(CMAKE_PREFIX_PATH "/home/alexaway/Mine/Qt5.8.0/5.8/gcc_64/lib/cmake")
find_package (Qt5 COMPONENTS Widgets)
find_package(OpenCV REQUIRED)

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)

SET( HPP_LIST
	mainwindow.h
	imgpro.h
	colorwheel.h
	colorblock.h
    recoloring.h
)
SET(CPP_LIST
	main.cpp
    mainwindow.cpp
    imgpro.cpp
    colorwheel.cpp
    colorblock.cpp
    recoloring.cpp
)
set  (project_SOURCES 
	main.cpp
    mainwindow.cpp
    imgpro.cpp
    colorwheel.cpp
    colorblock.cpp
    recoloring.cpp)
set  (project_HEADERS
	mainwindow.h
	imgpro.h
	colorwheel.h 
    colorblock.h
    recoloring.h)
set  (project_FORMS   mainwindow.ui)
include_directories(${OpenCV_INCLUDE_DIRS})
ADD_EXECUTABLE(image ${project_SOURCES} ico.rc)
TARGET_LINK_LIBRARIES (image ${OpenCV_LIBS})
qt5_use_modules(image Widgets)
